package com.group.dataroom;

import java.util.Calendar;

public class DataBean {
	String no,title,filename,user_name,download_count,fdata,cont,Writedate;
	
	
	
	public String getCont() {
		return cont;
	}

	public void setCont(String cont) {
		this.cont = cont;
	}

	public String getFdata() {
		return fdata;
	}

	public void setFdata(String fdata) {
		this.fdata = fdata;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getFilename() {
		return filename;
	}

	public void setFilename(String filename) {
		this.filename = filename;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String user_name) {
		this.user_name = user_name;
	}

	public String getDownload_count() {
		return download_count;
	}

	public void setDownload_count(String download_count) {
		this.download_count = download_count;
	}
	public String getWritedate() {
		return Writedate;
	}

	public void setWritedate(String writedate) {
		Writedate = writedate;
	}
	public void setWritedate() {
		//오늘 날짜 얻기, 오버로딩
		Calendar cal = Calendar.getInstance();
		int year = cal.get(Calendar.YEAR);
		int month = cal.get(Calendar.MONTH);
		int day = cal.get(Calendar.DATE);
		this.Writedate = year + "-"+ month + "-"+day;
	}


}
